package com.songtech.web.entry;

import javax.persistence.*;
import javax.xml.crypto.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * Create by WH on 2018/4/11 11:13
 *
 * @Description :
 */

@Entity
@Table(name = "sys_pos_elefence")
public class SysPosElefence implements Serializable{

    @Transient
    private static final long serialVersionUID = -2859257530793191702L;

    // id，主键
    @Id
    @Column(name = "elefence_id")
    private Long elefenceId;

    //终端身份标识
    @Column(name = "imei")
    private String imei;

    //电子围栏名称
    @Column(name = "elefence_name")
    private String elefenceName;

    //中心点经度
    @Column(name = "center_longitude")
    private Integer centerLongitude;

    //中心点纬度
    @Column(name = "center_latitude")
    private Integer centerLatitude;

    //半径
    @Column(name = "radius")
    private Integer radius;

    @Column(name = "create_user")
    private String createUser;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_user")
    private String updateUser;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "status")
    private Integer status;

    //保存前端需要的经度
    @Transient
    private Double longitudeShow;

    //保存前端需要的纬度
    @Transient
    private Double latitudeShow;

    public Long getElefenceId() {
        return elefenceId;
    }

    public void setElefenceId(Long elefenceId) {
        this.elefenceId = elefenceId;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getElefenceName() {
        return elefenceName;
    }

    public void setElefenceName(String elefenceName) {
        this.elefenceName = elefenceName;
    }

    public Integer getCenterLongitude() {
        return centerLongitude;
    }

    public void setCenterLongitude(Integer centerLongitude) {
        this.centerLongitude = centerLongitude;
    }

    public Integer getCenterLatitude() {
        return centerLatitude;
    }

    public void setCenterLatitude(Integer centerLatitude) {
        this.centerLatitude = centerLatitude;
    }

    public Integer getRadius() {
        return radius;
    }

    public void setRadius(Integer radius) {
        this.radius = radius;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Double getLongitudeShow() {
        return longitudeShow;
    }

    public void setLongitudeShow(Double longitudeShow) {
        this.longitudeShow = longitudeShow;
    }

    public Double getLatitudeShow() {
        return latitudeShow;
    }

    public void setLatitudeShow(Double latitudeShow) {
        this.latitudeShow = latitudeShow;
    }
}
